home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / tjgold.zip / GOLDFLAG.INC < prev    next >
Text File  |  1995-07-16  |  3KB  |  99 lines

  1. (*
  2. GOLDFLAG.INC is included in all GOLD units. You can add any global compiler
  3. directives, etc. to this file.
  4.  
  5.      The TOT conditional defines are
  6.  
  7.           FINAL - Enable this directive when you are building the production
  8.                   version of your program. The activated settings are designed
  9.                   to reduce program code size, and increase execution speed.
  10.     CUTANDPASTE - Enables block marking, cutting, pasting in the memo editor.
  11.        WORDWRAP - Support for optional word-wrapping in the memo editor
  12.      NOVGACHARS - Disable this directive if you do not want your application
  13.                   to support custom ASCII characters on VGA systems for
  14.                   line drawing, check boxes, etc.
  15.           FLOAT - Enable this directive if your program will be using extended
  16.                   real types, i.e. single, double, extended and comp. When
  17.                   this directive is not enforced, all real types are set to
  18.                   be plain reals. programs compiled in this state will
  19.                   only run on machines fitted with a math coprocessor
  20.         FLOATEM - This is the same as FLOAT except the program will run
  21.                   on systems that are not equipped with a math coprocessor.
  22.                   In case you were wondering, the compiler directive is an
  23.                   abbreviation for FLOAT EMULATION.
  24.         OVERLAY - This directive should normally be used when you want
  25.                   to overlay Toolkit units. Refer to the file OVERLAY.DOC
  26.                   for further information.
  27.  
  28.     To active a compile directive, you must use the $DEFINE keyword. For
  29.     example, to enable full floating point math emulation in your program
  30.     include the following statement in the "DEFINES AREA" below:
  31.  
  32.                      {$DEFINE FLOATEM}
  33. *)
  34.  
  35. {+++++++++++++++++++++++++++    DEFINES   AREA   +++++++++++++++++++++++++++}
  36. {$DEFINE FINAL}
  37.  
  38. {$DEFINE CUTANDPASTE}
  39.  
  40. {$DEFINE WORDWRAP}
  41.  
  42. {$DEFINE TTT5}
  43.  
  44. { $ DEFINE NOVGACHARS}
  45. { $ DEFINE NOVGAMOUSE}
  46.  
  47. { $ DEFINE FLOAT}
  48. { $ DEFINE FLOATEM}
  49.  
  50. {$DEFINE OVERLAY}
  51.  
  52. {+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}
  53.  
  54.  
  55.  
  56.  
  57.  
  58. {General compiler directives}
  59.  
  60. {$V-}   {no string length checking}
  61.  
  62. {$IFDEF VER70}
  63. {$Q-}   {no arithmetic overflow checking}
  64. {$ENDIF}
  65.  
  66. {$B-}   {short-circuit boolean-expression evaluation}
  67.  
  68. {$IFDEF FINAL}
  69.     {$S-,R-,L-,D-}
  70. {$ELSE}
  71.     {$S+}
  72.     {$R+}
  73.     {$L+}
  74.     {$D+}
  75.     {$IFNDEF CHECK}
  76.        {$DEFINE CHECK}
  77.     {$ENDIF}
  78.     {$IFNDEF DEBUG}
  79.        {$DEFINE DEBUG}
  80.     {$ENDIF}
  81. {$ENDIF}
  82.  
  83. {$IFDEF OVERLAY}
  84.     {$F+}
  85.     {$O+}
  86. {$ENDIF}
  87.  
  88. {Note the floating point type casting is in the totReal unit}
  89.  
  90. {$IFDEF FLOAT}
  91.     {$IFDEF FLOATEM}
  92.         {$N+,E+}
  93.     {$ELSE}
  94.         {$N+,E-}
  95.     {$ENDIF}
  96. {$ELSE}
  97.     {$N-,E-}
  98. {$ENDIF}
  99.